<%@ page contentType="text/html; charset=UTF-8"%>
<%@include file="/common/common_taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@include file="/common/common_meta.jsp" %>
	<link href="css/grid.css" rel="stylesheet" type="text/css" />
	<link href="css/icon.css" rel="stylesheet" type="text/css" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<%@include file="/common/kindeditor.jsp" %>
	<script type="text/javascript">
		var editor1 = null;
		KindEditor.ready(function(K) {
			editor1 = K.create('#admin_content', {
			cssPath : 'kindeditor/plugins/code/prettify.css',
			filePostName:"image",
			uploadJson : 'upload/kind',
			allowFileManager : false
		});
		prettyPrint();
		var artpic = '${artpic}';
		var artpic2 = '${article_admin.picture}';
		var isdraft = '${article_admin.isdraft}';
		var artid = '${article_admin.id}';
	</script>
</head>

<body id="article_center">
	<header> 
		<img alt="暂无图片" src="" id="admin_img">
		<form method="post" action="fileUpload" enctype="multipart/form-data">
			<input type="file" name="artpic"/>
			<input type="submit" value="配图上传"/>
		</form>
		${afterpublish}
		<form action="admin/publish" method="post" id="form1">
			<input type="hidden" name="admin_status" value="-10010" id="admin_status"/>
			<input type="hidden" name="article.id" value="${article_admin.id}"/>
			<input type="hidden" id="bindid" name="article.tagsid" value="${article_admin.tagsid}"/>
			<input type="hidden" name="article.picture" value="" id="art_hidden"/>
			文章标题：<input type="text" style="width: 35%;" name="article.title" id="arttitle" value="${article_admin.title}" placeholder="请输入文章标题"/>
			<select name="article.isdraft">
				<option value="0">正常</option>
				<option value="1">草稿</option>
			</select></br>
			文章摘要：<textarea name="article.remark" cols="100" rows="5" placeholder="请输入文章摘要">${article_admin.remark}</textarea>
			<input type="button" value="保存" id="admin_publish"/>
				<textarea cols="40" rows="28" name="article.content" id="admin_content">${article_admin.content}</textarea>
			</div>
		</form>
	</header>
	<script src="js/require.js" defer async="true" data-main="js/xx566_admin_article"></script>
</body>
</html>